- 
		Home
	
- 
MailPoet – Newsletters, Email Marketing, and Automation
- 
4.42.0
- 
Code
- 
Classes
-  API 
		
			
				
					
													
								
																			
											| Total Complexity | 49 | 
																			
											| Dependencies | 19 | 
																			
											| Dependents | 7 | 
																	
							 
													
								
																			
											| Total lines | 277 | 
																			
											| Lines of code | 196 | 
																			
											| Logical lines of code | 85 | 
																	
							 
													
								
																			
											| Comment lines | 20 | 
																			
											| Methods | 14 | 
																			
											| Properties | 15 | 
																	
							 
											 
				 
									
							 
		 
	 
	Methods 14
	
		
		
			| Method | Rating | Maintainability | Complexity | Lines of code | 
		
		
					
				| setRequestData() | A | 43 | 15 | 48 | 
					
				| processRoute() | A | 44 | 13 | 43 | 
					
				| setupAjax() | S | 53 | 6 | 20 | 
					
				| __construct() | S | 60 | 2 | 14 | 
					
				| logError() | S | 62 | 2 | 11 | 
					
				| init() | S | 59 | 1 | 18 | 
					
				| validatePermissions() | S | 72 | 2 | 5 | 
					
				| addEndpointNamespace() | S | 74 | 2 | 4 | 
					
				| setTokenAndAPIVersion() | S | 65 | 1 | 10 | 
					
				| addTokenToHeartbeatResponse() | S | 76 | 1 | 4 | 
					
				| getEndpointNamespaces() | S | 82 | 1 | 3 | 
					
				| getRequestedEndpointClass() | S | 82 | 1 | 3 | 
					
				| getRequestedAPIVersion() | S | 82 | 1 | 3 | 
					
				| createErrorResponse() | S | 66 | 1 | 10 |